{include file="public/header" select="0" /}
<body>
<div class="header">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i> 个人资料
</div>
<div class="personal-news flex-center">
    <label for="photo">
        <p class="flex-center">
            <img src="{$user.photo}" onerror="this.src='/static/admin/img/head_default.png'" id="photo">
        </p>
        <p>点击更换头像</p>
    </label>
</div>
<ul class="set-list">
    <li>
        <a>会员编号
            <div>{$user.code}</div>
        </a>
    </li>
    <li>
        <a href="{:url('user/edit')}">昵称
            <div>{$user.nickname}
                <i class="layui-icon layui-icon-right"></i>
            </div>
        </a>
    </li>
    <li>
        <a>手机号
            <div>{$user.mobile}</div>
        </a>
    </li>
    {if $user.parent_id}
    <li>
        <a>邀请码
            <div>{$user.parent_code}</div>
        </a>
    </li>
    {/if}
</ul>
{include file="public/footer" select="0" /}
</body>
</html>